<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}



<div class="container">
	<div class="main">
    
    	<style type="text/css">
			.vote li{ border-bottom:#eee solid 1px; padding:20px 0;}
		</style>
    	<div class="mod">
        	<div class="head">最新投票</div>
            <ul class="body vote">
              <!--{get sql="select subjectid, subject,addtime,description,url from table_vote_subject where parentid=0 order by listorder DESC,subjectid DESC" rows="20" page="$page"}-->
                <li>·<a href="{url($r[url])}">{if !$title} {$r[subject]} {else} {$r[title]} {/if}</a> [{date('Y-m-d', $r['addtime'])}]<br/>{$r[description]}</li>
              <!--{/get}-->
            </ul>
			<div class="pagination">{$pages}</div>
        </div>
    </div>
    
    <div class="aside">
    	<div class="mod">
        	<div class="head">热门投票</div>
            <ul class="body">
            	<!--{get sql="select subjectid, subject,addtime,url from table_vote_subject where parentid=0 order by hits DESC" rows="20" page="$page"}-->
                <li>·<a href="{url($r[url])}">{if !$title} {$r[subject]} {else} {$r[title]} {/if}</a> [{date('Y-m-d', $r['addtime'])}]</li>
              <!--{/get}-->
            </ul>
        </div>
    </div>
</div>


{template 'footer.html'}